package com.example.springboottemplate.Control.View;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.RedirectView;

/*
* Web 暴露
*/

@Controller
public class GetView {
    private static final Logger logger = LogManager.getLogger(GetView.class);

    @GetMapping("/")
    public String out(){
        logger.info("这是一条测试日志 欢迎使用 !");
        return "index";
    }

}
